//
//  UserAvatarTableViewCell.m
//  ITHome
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 YAX. All rights reserved.
//

#import "UserAvatarTableViewCell.h"

@implementation UserAvatarTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma mark - 自定义cell初始化
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 头像
        self.avatarLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, 50, 30)];
        self.avatarLabel.text = @"头像";
        self.avatarLabel.font = [UIFont systemFontOfSize:15];
        self.avatarLabel.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:_avatarLabel];
        
        // 头像图片
        self.avatarImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWidth - 110, 10, 60, 60)];
        self.avatarImageView.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_avatarImageView];
        
        // 辅助样式
        self.assImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWidth - 50, 50, 35, 35)];
        self.assImageView.image = [UIImage imageNamed:@"browser_forward_d"];
        [self.contentView addSubview:_assImageView];
        
    }
    return self;
}

@end
